<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        
    </style>
</head>
<body>
    
</body>
<script>
//小姑娘(姑娘的名字);
var girl = function(name){
    this.name = name;
}

//小伙子(想要送给谁)；
var boy = function(girl){
    this.girl = girl;
    this.sendGift = function(gift){
        alert("你好，漂亮的"+this.girl.name+"，这是我送你的："+gift);
    }
}

//快递小哥(知道送给谁);
var porxyLitterBrother = function(girl){
    this.girl = girl;
    this.send = function(gift){

        // console.log(gift)
        gift = "香水"


        var b = new boy(girl)
        b.sendGift(gift);
    }
}


var g = new girl("翠花")

// var b = new boy(g);
// b.sendGift("口红")

var p = new porxyLitterBrother(g)
p.send("口红")



</script>
</html>